import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
   token:""
  },
  mutations: {
     userinfo(state,payload) {
    // console.log(payload);
    state.token = payload
    localStorage.setItem("login2", JSON.stringify(payload))
     }
  },
  actions: {
  },
  modules: {
  }
})
